package com.kyxx.topics.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.kyxx.topics.R;
import com.kyxx.topics.utils.ToastUtils;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 我的意见
 */
public class FeedBackOpinionFragment extends Fragment {
    @Bind(R.id.rv_feed_back_opinion)
    RecyclerView rv_feed_back_opinion;
    @Bind(R.id.iv)
    ImageView iv;
    private View view;
    private Context ctx;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        ctx = getActivity();
        view = inflater.inflate(R.layout.fragment_feed_back_opinion, container, false);
        initData();
        logic();
        ButterKnife.bind(this, view);
        return view;
    }

    private void logic() {
//        rv_feed_back_opinion.setLayoutManager(new LinearLayoutManager(ctx));
    }

    private void initData() {
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick(R.id.tv_feeb_back_opinion_send)
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.tv_feeb_back_opinion_send:
                ToastUtils.show(ctx,"click");
                break;
        }
    }
}
